import { GateClient } from "./gateClient";
import { HttpClient } from "tsrpc-miniapp";

/**
 * 获取入口客户端
 * @returns 
 */
export function getGateClient(gateServerUrl: string): GateClient {
    return new GateClient((proto, opt) => {
        return new HttpClient(proto, opt);
    }, gateServerUrl);
}